# TextRange.compareEndPoints() Method

Select text in the paragraph in various places relative to the fixed text range (shown in red). See the relations between the fixed and selected ranges with respect to their start and end points.

Property | Returned Value | Fixed Range vs. Selection
--- | --- | ---
StartToEnd |  | Start of Fixed vs. End of Selection
StartToStart |  | Start of Fixed vs. Start of Selection
EndToStart |  | End of Fixed vs. Start of Selection
EndToEnd |  | End of Fixed vs. End of Selection

Lorem ipsum dolor sit, consectetaur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore aliqua. Ut enim adminim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.